﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Share;

/// <summary>
/// biz_content 的基类，每个接口的 biz_content 字段创建一个类，并继承 IcbcApiRequest
/// </summary>
public abstract class IcbcApiRequest
{
    [JsonIgnore]
    internal abstract string Url { get; }
}

/// <summary>
/// response_biz_content 的基类，每个接口的 response_biz_content 字段创建一个类，并继承 IcbcApiResponse
/// </summary>
public class IcbcApiResponse
{
    [JsonPropertyName("return_code")] public int ReturnCode { get; set; }
    [JsonPropertyName("return_msg")] public string ReturnMsg { get; set; } = string.Empty;
    [JsonPropertyName("msg_id")] public string MsgId { get; set; } = string.Empty;
}